<?php

/**
 * Created by PhpStorm.
 * User: yandian
 * Date: 16/9/8
 * Time: 10:56
 */
namespace app\common\base;
abstract class BaseAddon
{
    /**
     * @return array ['index'=>'','title'=>'','description'=>'','status'=>1,'author'=>'','version'=>'0.1']
     */
    public abstract function getInfo();

    /**
     *  安装前事件
     */
    public function onBeforeInstall()
    {
    }

    public function onAfterInstall()
    {
    }

    /**
     * 卸载前事件
     */
    public function onBeforeUnInstall()
    {
    }

    public function onAfterUnInstall()
    {
    }

    public function onBeforeUpdate()
    {

    }

    public function onAfterUpdate()
    {

    }

}